package com.yp.infrastructure.demo

import com.yp.infrastructure.axon.handler.BaseEventHandler
import org.axonframework.eventhandling.EventHandler
import org.axonframework.eventsourcing.EventSourcingHandler
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import org.springframework.stereotype.Component


@Component
class PartnerEventHandler : BaseEventHandler() {

    val log: Logger = LoggerFactory.getLogger(PartnerEventHandler::class.java)

    @EventHandler
    fun on(e: CreatePartnerEvent) {
        log.debug("event source handler.")
    }

}